Block Diagram To State Space